﻿using System;

namespace FutureTech
{
        /// <summary>
        ///         Message
        /// </summary>
        public class Message
        {
                /// <summary>
                ///         Initializes a new instance of the <see cref="Message" /> class.
                /// </summary>
                /// <param name="content">The content.</param>
                /// <param name="messageLevel">The message level.</param>
                /// <param name="time">The time.</param>
                public Message(string content, MessageLevel messageLevel, DateTime time)
                {
                        Time = time;
                        MessageLevel = messageLevel;
                        Content = content;
                }

                /// <summary>
                ///         Initializes a new instance of the <see cref="Message" /> class.
                /// </summary>
                /// <param name="content">The content.</param>
                /// <param name="messageLevel">The message level.</param>
                public Message(string content, MessageLevel messageLevel)
                        : this(content, messageLevel, DateTime.Now)
                {
                }

                /// <summary>
                ///         Initializes a new instance of the <see cref="Message" /> class.
                /// </summary>
                /// <param name="content">The content.</param>
                public Message(string content)
                        : this(content, MessageLevel.Notice, DateTime.Now)
                {
                }

                /// <summary>
                ///         Gets or sets the time.
                /// </summary>
                /// <value>
                ///         The time.
                /// </value>
                public DateTime Time { get; set; }

                /// <summary>
                /// 级别
                /// </summary>
                public MessageLevel MessageLevel { get; set; }

                /// <summary>
                /// 内容
                /// </summary>
                public string Content { get; set; }
        }
}